#ifndef __SOCKETMACROS__
#define __SOCKETMACROS__

// lsb to msb byte swapping macros
// from Wave's appcom library (wave@media.mit.edu)

#define SM_swap_short(x) (((x<<8)|((x>>8)&0xff))&0xffff)
#define SM_swap_int(x)	 ((SM_swap_short(x)<<16)|SM_swap_short(x>>16))

#endif

